package view;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import javax.inject.Inject;






import controller.EmployeeController;
import entity.Commissioned;
import entity.Contractor;
import entity.Employee;
import entity.Salaried;

@ManagedBean
@ViewScoped 
public class PersonalData {
	@Inject
	EmployeeController controller;
	private Employee employee;
	
	public float getSalesPercent(Employee employee){
		return ((Commissioned)employee).getSales_percent();	
	}
	
	public float getMonthlySalary(Employee employee){	
		return ((Salaried)employee).getMonthly_salary();	
	}
	
	public float getHourlyRate(Employee employee){
		 return ((Contractor)employee).getHourly_rate();
	}
	

}
